#pragma once

#include <vector>
#include <ECS/ECS.h>
#include "../AI/AIPackage.h"

class TaskPerformer;

class AI : public ECS::Component
{
	mtMETA_DEC;
public:
	AI();
	virtual ~AI();

	void onStart();

	void addPackage(ai::AIPackage* package);
protected:
	void selectTask();

	TaskPerformer* _cachedTaskPerformer;
	std::vector<ai::AIPackage*> _packages;
};